﻿using System;

class DrawSmallMatrix
{
    static void Main()
    {
        int numberN;

        Console.WriteLine("Type a number:");
        bool isNumberValid = int.TryParse(Console.ReadLine(), out numberN);

        if (isNumberValid)
        {
            for (int i = 0; i < numberN; i++)
            {
                
                for (int j = 1; j <= numberN; j++)
                {
                    Console.Write(j+i + " ");
                }
                Console.WriteLine();
            }
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}